<include file="Public:header" />
<!-- end nav -->
<!-- begin container -->
<div class="container-fuid">
	<div class="row">
		<div class="col-lg-12 col-md-12 col-xs-12" style="background-color: #FFF;">
			<!-- begin tab -->
			<form class="form-horizontal"role="form" enctype="multipart/form-data" action="" method="post">
			<volist name="list" id="item">
				<div class="form-group">
					<label for="{$item['name']}" class="col-sm-2 control-label">{$item['title']}</label>
					<div class="col-sm-6">
						<if condition="$item['type'] eq '1'">
						<input type="text" class="form-control" id="{$item['name']}" name="config[{$item['name']}]" value="{$item['value']}">
						<elseif condition="$item['type'] eq '2'" />
						<textarea class="form-control" id="{$item['name']}" name="config[{$item['name']}]">{$item['value']}</textarea>
						<elseif condition="$item['type'] eq '3'" />
						<elseif condition="$item['type'] eq '4'" />
						<select class="form-control" id="{$item['name']}" name="config[{$item['name']}]">
							<volist name="item['extra']" id="vo">
							<option value="{$vo[0]}" <if condition="$item['value'] eq $vo[0]">selected</if>>{$vo[1]}</option>
							</volist>
						</select>
						<elseif condition="$item['type'] eq '5'" />
							<div class="input-group">
								<input type="text" class="form-control" name="config[{$item['name']}]" id="{$item['name']}" value="{$item['value']}" placeholder="{$item['title']}">
								<span class="input-group-btn">
								<span class="btn btn-default" onClick="uploadify('','#{$item['name']}',1,'','')">上传</span>
								</span>
							</div>
						<elseif condition="$item['type'] eq '6'" />
						</if>
					</div>
					<span class="help-block">{$item['remark']}</span>
				</div>
			</volist>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					<button type="sumbit" class="btn btn-primary">保存</button>
				</div>
			</div>
		</form>
	</div>
	<!-- col end -->
</div>
<!-- end row -->
<!-- end container -->
<!-- /.modal -->
<include file="Public:foot" />